package com.iseastar.dianxiaosan.home.parcel;

import android.os.Bundle;
import android.widget.TextView;

import com.iseastar.dianxiaosan.home.adapter.ParcelWaitAdapter;
import com.iseastar.dianxiaosan.model.ParcelWaitBean;
import com.iseastar.guojiang.BaseActivity;
import com.shouhuobao.station.R;

import java.util.ArrayList;

import droid.frame.view.xlist.SListView;

/**
 * 店小三中（裹将）待取走的包裹
 *
 * @author HuXinDan<br>
 *         2016-11-18上午10:06:07
 */
public class ParcelWaitActivity extends BaseActivity {

    private SListView mListView;
    private ParcelWaitAdapter mAdapter;
    private TextView parcelWaitNum;
    private ArrayList<ParcelWaitBean> mList = null;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    protected void findViewById() {
        setContentView(R.layout.parcel_wait);
        super.findViewById();
        getAppTitle().setCommonTitle("待取走的包裹");
        mList = (ArrayList<ParcelWaitBean>) getIntent().getSerializableExtra("bean");
        mListView = (SListView) findViewById(R.id.listview);
        parcelWaitNum = (TextView) findViewById(R.id.parcel_wait_num);// 待取走包裹数量
        mListView.setFooterDividersEnabled(true);
        mAdapter = new ParcelWaitAdapter(mList, getContext(), mListView);
        mListView.setAdapter(mAdapter);
        parcelWaitNum.setText("共有" + mAdapter.getItemsSize() + "个包裹等待火箭侠取走");
    }
}
